﻿<div class="box-content">
<div class="box-product">
    @{
        byte b = 0;
        string[] liclass = { "first-in-line col-sm-4", " col-sm-4",
                               "last-in-line col-sm-4", "first-in-line last_line col-sm-4"
                               ,"last_line col-sm-4","last-in-line last_line col-sm-4"};
        
        }
<ul class="row">

    @foreach (var item in ViewBag.topproducts as IList<EPOS.Models.urunler>)
    {
        
        <li class="@liclass[b]">
<script type="text/javascript">
    $(document).ready(function () {
        $("a.colorbox1").colorbox({
            rel: 'colorbox',
            inline: true,
            html: true,
            width: '58%',
            maxWidth: '780px',
            height: '70%',
            open: false,
            returnFocus: false,
            fixed: false,
            title: false,
            href: '.quick-view1',
            current: 'Product {current} of {total}'
        });
    });
				</script>
<div class="image2">
<a title="@item.urunadi" href="#"><img id="img_34" src="@item.fotoyolu" alt="Dolor sit amet conse"/></a>
</div>
            @*acilan pop up bilgilendirme ekrani*@
<div style="display:none;">
<div class="quick-view1 preview">
<div class="wrapper marg row">
<div class="left col-sm-4">
<div class="image3">
<a href="@Url.Action("Detaylar/"+item.urunID)"><img src="@item.fotoyolu" width alt=@item.aciklamaP1/></a>
</div>
</div>
<div class="right col-sm-8">
<h2>@item.urunadi</h2>
<div class="inf">
<span class="manufacture">Brand: <a href="@Url.Action("Detaylar/"+item.urunID)">@item.aciklamaP1</a></span>
<span class="model">Model: @item.modelID</span>
<span class="prod-stock-2">Availability: @{if (item.stokmiktari > item.kritikstokseviyesi)
                                           {
                                              ViewData["durum"] = "Stoklarda Bulunmakta";
                                           }
                                           else
                                           {
                                               ViewData["durum"] = "Stoklarda Yok";
                                           }
                                           }</span>
<span class="prod-stock">@ViewData["durum"]</span>
<div class="price">
<span class="text-price">Price: </span>
@item.fiyati TL
</div>
</div>
<div class="cart-button">
<div class="cart">
<a title="Add to cart" data-id="34;" class="button addToCart-1 tooltip-1">
<i class="fa fa-shopping-cart"></i>
<span>Sepete Ekle</span>
</a>
</div>
<div class="wishlist">
<a class="tooltip-1" title="Add to Wish List" onclick="addToWishList('34');">
<i class="fa fa-star"></i>
<span>İstek Listesine Ekle</span>
</a>
</div>
<div class="compare">
<a class="tooltip-1" title="Add to Compare" onclick="addToCompare('34');">
<i class="fa fa-bar-chart-o"></i>
<span>Karşılaştırmaya Ekle</span>
</a>
</div>
<span class="clear"></span>
</div>
<div class="clear"></div>
<div class="rating">
<img height="18" src="catalog/view/theme/theme336/image/stars-0.png" alt="0"/>
</div>
</div>
</div>
@*<div class="description">
<p><strong>Health</strong> is one of most important things in our life. We think that it is a real luck to have a strong health. Our way of life doesn’t increase the physiological condition of our body. Alcohol, cigarettes, unhealthy food, stresses and other factors have a great influence on our health. The human’s immune system is very uncertain thing because there is a countless quantity of different dangerous viruses and bacteria.</p>
<p>It is very noble activity to protect health and help people recover. Our main goal is to find the easiest way of <strong>treatment</strong>. Our company states that our goods are of premium quality. This product is totally safe for your health. It has passed many <strong>various tests</strong> without a single failure. It is really a product of a new generation.</p>
<p>Well, if you are ready to purchase our goods we will help you to make a right choice. If you have some questions, you can address our support system.</p>
</div>*@
</div>
</div>
           @*ilk gorunus ekrani*@
<a href="@Url.Action("Detaylar/"+item.urunID)" rel="colorbox" class="colorbox1 quick-view-button"><i class=" fa fa-search-plus "></i></a>
<div class="inner">
<div class="f- ">
<div class="name maxheight-feat"><a href="@Url.Action("Detaylar/"+item.urunID)">@item.urunadi</a></div>
<div class="description">@item.aciklamaP1</div>
<div class="price">
@item.fiyati TL </div>
</div>
<div class="cart-button">
<div class="cart"><a title="Sepete Ekle" data-id="34;" class="button addToCart tooltip-1">
                                               <img src="~/Content/theme/base/img/add_48.png" /><span>Sepete Ekle</span></a></div>
<a href="@Url.Action("Detaylar/"+item.urunID)" class="button details"><span>Ürün Detayları</span></a>
<span class="clear"></span>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</li>
        b++;
    }











</ul>
</div>
<div class="clear"></div>
</div>